package com.weifly.jettycn.util;

import java.util.List;

/**
 * 树节点对象
 * 
 * @author weijx
 * @date 2011-10-05
 */
public class TreeNode {

	/**
	 * 父节点
	 */
	private TreeNode parent;
	
	/**
	 * 子节点列表
	 */
	private List<TreeNode> childList;
	
	/**
	 * 本节点中存储的对象
	 */
	private Object target;
	
	/**
	 * 计数器
	 */
	private int counter;

	public TreeNode getParent() {
		return parent;
	}

	public void setParent(TreeNode parent) {
		this.parent = parent;
	}

	public List<TreeNode> getChildList() {
		return childList;
	}

	public void setChildList(List<TreeNode> childList) {
		this.childList = childList;
	}

	public Object getTarget() {
		return target;
	}

	public void setTarget(Object target) {
		this.target = target;
	}

	public int getCounter() {
		return counter;
	}

	public void setCounter(int counter) {
		this.counter = counter;
	}
	
}
